package cn.lxh.convert;

import cn.lxh.pojo.app.bo.DriverSettingBo;
import cn.lxh.pojo.app.dto.AuthMaterialDto;
import cn.lxh.pojo.domain.DriverAuthMaterial;
import cn.lxh.pojo.domain.DriverSetting;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author lxh Create Time: 2024/1/1 17:00
 * 转换为司机其他对象
 */
@Mapper
public interface DriverConverter {
    DriverConverter INSTANCE = Mappers.getMapper(DriverConverter.class);

    /**
     * 转为司机材料对象
     * @param authMaterialDto
     * @return
     */
    // @Mappings({@Mapping(source = "name", target = "userName")})
    DriverAuthMaterial convertAuthMaterial(AuthMaterialDto authMaterialDto);

    /**
     * 转为司机配置对象
     * @param driverSetting
     * @return
     */
    DriverSettingBo convertDriverSettingBo(DriverSetting driverSetting);
}
